package com.patttern.behavior.template;

/**
 * @Author: root
 * @Date: 2018/12/3 22:54
 */
public class Client {
    public static void main(String[] args) {
        new TemplateMethod() {
            @Override
            public void execute() {
                System.out.println("execute................");
            }
        }.transact();
        new TemplateMethod() {
            @Override
            public void execute() {
                System.out.println("正在执行................");
            }
        }.transact();
    }
}
